package com.woniuxy.charin.mapper;

import com.woniuxy.charin.model.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
* @author KOO
* @description 针对表【role】的数据库操作Mapper
* @createDate 2024-12-26 16:45:32
* @Entity com.woniuxy.charin.model.entity.Role
*/
public interface RoleMapper extends BaseMapper<Role> {
    @Update({
            "<script>",
            "UPDATE role",
            "SET status = #{status}",
            "WHERE role_id IN (",
            "<foreach collection='deleteIds' item='id'  separator=','>",
            "#{id}",
            "</foreach> )",
            "</script>"
    })
    void batchUpdateStatus(@Param("deleteIds") Integer[] deleteIds,
                           @Param("status") Integer status);
}




